package com.yeyks.consumer.service.impl;

import com.yeyks.consumer.dal.domain.UserMemberCardBill;
import com.yeyks.consumer.dal.dao.UserMemberCardBillMapper;
import com.yeyks.consumer.service.UserMemberCardBillService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Date;


/**
 * <p>
 * 用户会员卡明细表 服务实现类
 * </p>
 *
 * @author yun
 * @since 2019-06-25
 */
@Service
public class UserMemberCardBillServiceImpl extends ServiceImpl<UserMemberCardBillMapper, UserMemberCardBill> implements UserMemberCardBillService {

    /**
     * 创建用户会员卡消费明细
     *
     * @param bill
     * @return
     */
    @Override
    public Integer insert(UserMemberCardBill bill) {
        bill.setCreateTime(new Date());
        return baseMapper.insert(bill);
    }

}
